home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / mfcsm2.exe / SIMNEW.EXE / MFC / SAMPLES / DOCTEMP / DOCTEMP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-06  |  5.5 KB  |  197 lines

  1. // Filename: DOCTEMP.H                                      
  2. // "DOCTEMP" Generated by Visual Programmer.                
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Do not add code here.
  8. // 
  9. // This file is maintained by the Switch-It Module.
  10. // As you make changes in your applications design,
  11. // this file is automatically updated, therefore you never modify this file.
  12. // 
  13. // 
  14. // 
  15. // For more information,
  16. // see the section "How code is generated" in the documentation.
  17. // 
  18. // ***********************************************************************
  19. // 
  20.  
  21. // ****************************************************************************
  22. // Windows messages for WinHelp support 
  23. // ****************************************************************************
  24.  
  25. #ifndef WM_COMMANDHELP
  26. #define WM_COMMANDHELP              0x0365
  27. #endif
  28.  
  29. #ifndef WM_HELPHITTEST
  30. #define WM_HELPHITTEST              0x0366
  31. #endif
  32.  
  33. // ****************************************************************************
  34. // WPARAM for registered Windows message 
  35. // ****************************************************************************
  36.  
  37. #define SIM_CTRLPAINT             1
  38. #define SIM_CTLCOLOR              2
  39. #define SIM_GETCHILDDIALOG        3
  40. #define SIM_SETCHILDDIALOG        4
  41. #define SIM_SIZEDIALOG            5
  42. #define SIM_LOADACCELTABLE        6
  43. #define SIM_RELOADACCELERATORS    7
  44.  
  45. typedef struct tagBLDSetChildDialog
  46.     {
  47.     CWnd *pWnd;
  48.     UINT  nStyle;
  49.     }BLDSetChildDialog;
  50. typedef BLDSetChildDialog FAR *LPBLDSetChildDialog;
  51.  
  52. // ****************************************************************************
  53. // Types for Graphic Buttons 
  54. // ****************************************************************************
  55.  
  56. #define SIM_GRAPHIC           1
  57. #define SIM_GRAPHIC_BKGRND    2
  58. #define SIM_GRAPHIC_3D        3
  59.  
  60.  
  61. // To support name from previous version.
  62. #define CWinMakerFrameWnd   Cwm_MainBaseWnd
  63. #define CWinMakerApp        Cwm_BaseApplication
  64. #define CWinMakerClientDlg  CSimClientDlg
  65.  
  66.     
  67. #if !defined(THISISBLDRC)
  68.     
  69. #include <AFXEXT.H>
  70. #endif
  71.     
  72. #include "DOCUMENT.H"
  73. #include "USERCODE.H"
  74.  
  75. //  Give access to variables in all code modules 
  76. extern DWORD     dwDialogProp;
  77. extern BOOL      b256Color;
  78. extern BOOL      bPreCreateCheck;
  79. extern HINSTANCE hBMPInst;
  80. extern UINT      wPrivateMessage;
  81.  
  82. #define CLIENTSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_SYSMENU|WS_POPUP|WS_THICKFRAME|DS_MODALFRAME|DS_SYSMODAL|WS_VISIBLE
  83. #define TOOLBARSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_POPUP|DS_SYSMODAL|WS_VISIBLE
  84.  
  85. typedef struct 
  86.    {
  87.    long          style;
  88.    // MORE ...
  89.    } BLD_DLGTEMPLATE;
  90.  
  91. typedef BLD_DLGTEMPLATE far             *LPBLD_DLGTEMPLATE;
  92.  
  93. #define BLDTOOLBARSTYLEDEFAULT           (UINT)0xffff
  94.  
  95.  
  96.  
  97. // Constants for error message strings
  98. #define BLD_CannotRun                   4000
  99. #define BLD_CannotCreate                4001
  100. #define BLD_CannotLoadMenu              4002
  101. #define BLD_CannotLoadIcon              4003
  102. #define BLD_CannotLoadBitmap            4004
  103. #define BLD_CannotCreateWindow          4005
  104.     
  105. // User defined constant ID's
  106.     
  107. #define IDM_New                         10000
  108. #define IDM_Open                        10001
  109.  
  110. // Resource IDs for menus and accelerators
  111. #define IDR_SIMPLE                      2
  112.  
  113.     
  114. // Switch-It Module automatic generated constant ID's
  115.     
  116. #define IDM_Save                        4000
  117. #define IDM_SaveAs                      4001
  118. #define IDM_Print                       4002
  119. #define IDM_PrintSetup                  4003
  120. #define IDM_Exit                        4004
  121. #define IDM_Undo                        4005
  122. #define IDM_Cut                         4006
  123. #define IDM_Copy                        4007
  124. #define IDM_Paste                       4008
  125. #define IDM_PasteLink                   4009
  126. #define IDM_Links                       4010
  127. #define IDM_NewWindow                   4011
  128. #define IDM_Cascade                     4012
  129. #define IDM_Tile                        4013
  130. #define IDM_ArrangeIcons                4014
  131. #define IDM_CloseActive                 4015
  132. #define IDM_Contents                    4016
  133. #define IDM_HowtoUseHelp                4017
  134. #define IDM_About                       4018
  135.  
  136. #define WMPDEBUG 
  137.     
  138.     
  139. // Help ID's used by functions
  140.     
  141.     
  142. #if !defined(THISISBLDRC)
  143.     
  144. #include "PROTO.H"
  145.  
  146. #endif
  147.     
  148.  
  149.  
  150. // *********************************************************
  151. // ERROR MESSAGE HANDLING (Definitions can be overruled.)
  152. // *********************************************************
  153.  
  154. #ifndef BLDMAINCAPTION
  155. #define BLDMAINCAPTION "MDI Framework 1"
  156. #endif
  157.  
  158. #ifndef BLDLOADERROR
  159. #define BLDLOADERROR "Cannot load string."
  160. #endif
  161.  
  162.  
  163.  
  164. // Switch-It Module color definitions
  165.  
  166. #define  BLD_BLACK          0X00000000L
  167. #define  BLD_WHITE          0X00FFFFFFL
  168. #define  BLD_GRAY           0X007F7F7FL
  169. #define  BLD_LTGRAY         0X00C0C0C0L
  170.  
  171.  
  172. // Switch-It Module definitions
  173.  
  174. #define BLD_MAXPATH         256
  175.  
  176. // Switch-It Module global dialog box properties
  177.  
  178. #define BLDGRAY_DIALOGBOX   0x00000001L
  179. #define BLDGRAY_BUTTON      0x00000002L
  180. #define BLDGRAY_COMBOBOX    0x00000004L
  181. #define BLDGRAY_LISTBOX     0x00000008L
  182. #define BLDGRAY_EDIT        0x00000010L
  183. #define BLDGRAY_SCROLLBAR   0x00000020L
  184. #define BLDGRAY_TEXT        0x00000040L
  185.  
  186.     
  187. #if !defined(THISISBLDRC)
  188.     
  189. #include "SERVICE.WMH"
  190. #include "DOCTEMP.WMH"
  191.  
  192.  
  193. extern Cwm_Application  TheApp;
  194.  
  195. #endif
  196.     
  197.